$OpenBSD: patch-cucipop_c,v 1.2 2001/02/23 02:10:21 itojun Exp $
--- cucipop.c.orig	Fri Feb 23 11:32:24 2001
+++ cucipop.c	Fri Feb 23 11:32:45 2001
@@ -741,7 +741,7 @@
       !debug&&(errno==ENOTSOCK||errno==EINVAL))
       { int serverfd,curfd;
 	signal(SIGHUP,SIG_IGN);signal(SIGPIPE,SIG_IGN);fclose(stdin);
-	fclose(stdout);serverfd=socket(PF_INET,SOCK_STREAM,TCP_PROT);
+	fclose(stdout);serverfd=socket(AF_INET,SOCK_STREAM,IPPROTO_TCP);
 #ifdef INET6
 	/* XXX assumes INET */
 	memset(&peername, 0, sizeof(peername));
@@ -755,8 +755,8 @@
 	curfd=-1;
 	setsockopt(serverfd,SOL_SOCKET,SO_REUSEADDR,&curfd,sizeof curfd);
 	if(bind(serverfd,(struct sockaddr*)&peername,namelen))
-	 { syslog(LOG_CRIT,"unable to bind socket %d",POP3_PORT);
-	   fprintf(stderr,"%s: Can't bind socket %d\n",cucipopn,POP3_PORT);
+	 { syslog(LOG_CRIT,"unable to bind socket %d",port);
+	   fprintf(stderr,"%s: Can't bind socket %d\n",cucipopn,port);
 	   return EX_OSFILE;
 	 }
 	fclose(stderr);
